home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / WAIS / next-ui / WaisSource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-03  |  2.1 KB  |  94 lines

  1. // WaisSource.h
  2. //
  3. // Free software created 1 Feb 1992
  4. // by Paul Burchard <burchard@math.utah.edu>.
  5. // Incorporating:
  6. /* 
  7.    WIDE AREA INFORMATION SERVER SOFTWARE:
  8.    No guarantees or restrictions.  See the readme file for the full standard
  9.    disclaimer.
  10.  
  11.    This is part of the [NeXTstep] user-interface for the WAIS software.
  12.    Do with it as you please.
  13.  
  14.    Version 0.82
  15.    Wed Apr 24 1991
  16.  
  17.    jonathan@Think.COM
  18.  
  19. */
  20. //
  21. // NOTE: In some of the WAIS software there is a distinction between sources 
  22. // and source-id's.  This distinction is eliminated here, with sources having a 
  23. // ":filename" info field so they can be act as their own source-id's.  This 
  24. // info field is kept consistent with the source's object-lookup key.
  25. //
  26.  
  27. #import "Wais.h"
  28.  
  29. extern _WaisDecoder waisSourceDecoder[];
  30.  
  31. @interface WaisSource : Wais
  32. {
  33.     FILE *connection;
  34.     BOOL isConnected;
  35.     long bufferLength;
  36.     id dataFileList;
  37.     int listCounter;
  38. }
  39.  
  40. // Access by string keys.
  41. - setKey:(const char *)aKey;
  42. + folderList;
  43. + setFolderList:aList;
  44. + (const char *)defaultHomeFolder;
  45.  
  46. // Creating and destroying sources.
  47. - initKey:(const char *)aKey;
  48. - free;
  49.  
  50. // Managing connections.
  51. - setConnected:(BOOL)yn;
  52. - (BOOL)isConnected;
  53. - (FILE *)connection;
  54. - (long)bufferLength;
  55. + registerUser:(const char *)userInfoString;
  56.  
  57. // Managing list of files and folders to be indexed in local source.
  58. - dataFileList;
  59. - addDataFile:data;
  60. - removeDataFile:data;
  61. - clearDataFiles;
  62.  
  63. // Routing error messages.
  64. + (const char *)errorTitle;
  65.  
  66. // Reading/writing WAIS files.
  67. - readWaisFile;
  68. - writeWaisFile;
  69. - (short)readWaisStruct:(const char *)structName
  70.     forElement:(const char *)elementName
  71.     fromFile:(FILE *)file
  72.     withDecoder:(WaisDecoder)theDecoder;
  73. - (short)writeWaisStruct:(const char *)structName
  74.     forElement:(const char *)elementName
  75.     toFile:(FILE *)file
  76.     withDecoder:(WaisDecoder)theDecoder;
  77. + (const char *)fileStructName;
  78. + (WaisDecoder)fileStructDecoder;
  79. + (BOOL)checkFileName:(const char *)fileName;
  80.  
  81. @end
  82.  
  83.  
  84. @interface WaisDataFile : Wais
  85. {
  86. }
  87.  
  88. + (const char *)fileStructName;
  89. + (WaisDecoder)fileStructDecoder;
  90.  
  91. @end
  92.  
  93.  
  94.